

class Player():
    # TODO: Remove
    life = 100
    
    mass_max        = 100
    energy_max      = 100
    mass_current    = 100
    energy_current  = 100
    mass_recharge   = 10
    energy_recharge = 10
    
    
    def __init__(self):
        pass
        
    def calc_resources(self, time):
        self.mass_current += self.mass_recharge*time
        if self.mass_current > self.mass_max:
            self.mass_current = self.mass_max
            
        self.energy_current += self.energy_recharge*time
        if self.energy_current > self.energy_max:
            self.energy_current = self.energy_max
        